package com.sales.fallback;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.sales.controller.QuotationController;
import feign.hystrix.FallbackFactory;
import org.comple.erp.pojo.base.goods.Goods;
import org.comple.erp.remote.base.GoodsRemote;
import org.comple.erp.utils.AjaxResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.*;


@Component
public class GoodsClientFallback implements FallbackFactory<GoodsRemote> {
    private final Logger logger = LoggerFactory.getLogger(GoodsClientFallback.class);

    @Override
    public GoodsRemote create(Throwable throwable) {
        return new GoodsRemote(){


            @Override
            public AjaxResult getAllGoods() {
                return null;
            }

            @Override
            public AjaxResult getGoods(Map<String, Object> map) {
                return null;
            }
        };
    }
}
